# 下载链接
URL = r'''
http://localhost:5244/all/%E7%AC%94%E8%AE%B0%E5%A4%87%E4%BB%BD/%E6%96%87/Projects
'''.strip()
# 下载目录
DOWN_DIR = r"/home/tianlaoban/Downloads"

# --Aria2+++
# RPC密钥
RPC_SECRET = "this_for_alsit_pikpak"
# 主机：端口
ARIA2_HOST = "localhost"
ARIA2_PORT = "6800"

# --Alist+++
# 主机：端口
ALIST_HOST = "localhost"
ALIST_PORT = "5244"
# user,password
USERNAME = 'admin'
PASSWORD = 'tqcm5Vig'





# 工具
import os

def mkdir(dir):
    dir = '/' + dir if dir[0] != '/' else dir
    if not os.path.exists(DOWN_DIR + dir):
        os.mkdir(DOWN_DIR + dir) 


def jb(s:str,left:str,right:str) ->str:
    return s.split(left)[-1].split(right)[0]




# def dd(url):
#     s = url.split('/',maxsplit=3)
#     print(s)





if __name__ == '__main__':
    pass